.class public Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;
.super Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;
.source "MediaPickerAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$a;,
        Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;,
        Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;,
        Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter<",
        "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field private d:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;

.field private e:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;

.field private f:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;

.field private g:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$a;

.field private h:Z

.field private i:Z

.field private j:Z

.field private k:I

.field private l:Lcom/bumptech/glide/h;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Lcom/bumptech/glide/h;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;",
            "Lcom/bumptech/glide/h;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;-><init>()V

    .line 2
    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    .line 3
    iput-object p3, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->l:Lcom/bumptech/glide/h;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Ljava/util/List;Lcom/bumptech/glide/h;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;",
            ">;",
            "Lcom/bumptech/glide/h;",
            ")V"
        }
    .end annotation

    .line 4
    invoke-direct {p0, p1, p2, p4}, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;-><init>(Landroid/content/Context;Ljava/util/List;Lcom/bumptech/glide/h;)V

    .line 5
    iput-object p3, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$a;)V
    .locals 0

    .line 4
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->g:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$a;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;)V
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->e:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;)V
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;)V
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->f:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->i:Z

    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->h:Z

    return-void
.end method

.method public c(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->j:Z

    return-void
.end method

.method public e(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->k:I

    return-void
.end method

.method public getItemCount()I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    .line 2
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 3
    :goto_0
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->h:Z

    if-eqz v1, :cond_1

    add-int/lit8 v0, v0, 0x1

    :cond_1
    return v0
.end method

.method public getItemViewType(I)I
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->h:Z

    if-eqz v0, :cond_0

    if-nez p1, :cond_0

    const/4 p1, -0x1

    return p1

    .line 2
    :cond_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->h:Z

    if-eqz v0, :cond_1

    add-int/lit8 p1, p1, -0x1

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    .line 4
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 5
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->e()Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;

    move-result-object p1

    iget p1, p1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->value:I

    return p1
.end method

.method public onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 2

    .line 1
    invoke-virtual {p0, p2}, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_1

    .line 2
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->h:Z

    if-eqz v0, :cond_0

    add-int/lit8 p2, p2, -0x1

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 4
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;

    .line 5
    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    invoke-virtual {p1, v0, p2}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;->a(Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;I)V

    :cond_1
    return-void
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 2

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 1
    new-instance p2, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/CameraViewHolder;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    sget v0, Les/y4;->__picker_item_photo:I

    const/4 v1, 0x0

    .line 2
    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->g:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$a;

    invoke-direct {p2, p1, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/CameraViewHolder;-><init>(Landroid/view/View;Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$a;)V

    return-object p2

    .line 3
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;-><init>()V

    .line 4
    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->l:Lcom/bumptech/glide/h;

    .line 5
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(Lcom/bumptech/glide/h;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    .line 6
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(Landroid/view/ViewGroup;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    .line 7
    invoke-virtual {v0, p2}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->b(I)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    iget p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->k:I

    .line 8
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(I)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    iget-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->j:Z

    .line 9
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->b(Z)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    iget-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->i:Z

    .line 10
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(Z)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->f:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;

    .line 11
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->e:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;

    .line 12
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;

    .line 13
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;

    .line 14
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/d;->a()Lcom/esfile/screen/recorder/picture/picker/adapter/holder/MediaViewHolder;

    move-result-object p1

    return-object p1
.end method
